package com.dtt.learning.repository;

import com.dtt.learning.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by daitiantian on 2018/4/17.
 */
public interface UserRepository extends JpaRepository<User, Integer> {

    User findByUserNameAndPassword(String userName, String pass);

    User findByUserName(String userName);


}
